package com.agnes.network.callback;

import java.util.List;

/**
 * Desc:
 * Creator ling
 * Date:   2017/9/28 0028 15:05
 */

public interface RespCallback<D> {

    void onStart();

    void onFailure(Throwable e);

    void onFinish();

    void onSuccess(String msg, D data);
    void onSuccess(String msg, List<D> dataList);

    void onError(String code, String failureMsg, D data);
    void onError(String code, String failureMsg, List<D> dataList);


}
